package com.wondersgroup.esclient.modle;

import java.io.Serializable;
import java.util.Date;

import com.wondersgroup.esclient.annotation.FieldES;
import com.wondersgroup.esclient.annotation.IdES;

public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7280404734969227454L;

	@IdES
	private Integer id;
	
	@FieldES
	private String userName;
	
	@FieldES
	private Integer age;
	
	@FieldES
	private Date brithday;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	
	public Date getBrithday() {
		return brithday;
	}

	public void setBrithday(Date brithday) {
		this.brithday = brithday;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", age=" + age + ", brithday=" + brithday + "]";
	}

	
}
